package com.gigmissions.client.ui;

import java.util.List;

import com.gigmissions.client.config.GigMissionsMessages;
import com.gigmissions.client.dto.Artist;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class HomePanel extends VerticalPanel {
	
	private ActivityPanel activityPanel;
	private LoginSignupPanel loginSignupPanel;
	
	@Inject
	public HomePanel(ActivityPanel activityPanel,GigMissionsMessages messages,LoginSignupPanel loginSignupPanel){
	
		this.activityPanel = activityPanel;
		this.loginSignupPanel = loginSignupPanel;
		this.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
		this.add(this.loginSignupPanel);
		this.add(this.activityPanel);
		
		
	}
	
	
	
	
	public void showActivityPanel(List<Artist> result){

		activityPanel.presentArtists(result);
		
			
		
	}
	
	
	
	
	

}
